** The European Union and the Political Economy of Enforcing International Trade Rules - van Ommeren, Poletti, De Bivre **

*----------------------------------------------------------------------------------------------------------
*--------------------------------------- Probit regressions -----------------------------------------------------------
*----------------------------------------------------------------------------------------------------------	
*-------- Stage 1 -------------* 
use "EUTB Dataset.dta", clear

* Table 1 (Model I)
probit Action INDCON GEOCON POLCON PCRISIS AGRICU WTO, robust
estat classification
estat summarize

* Table 1 (Model II)
probit Action INDCON GEOCON POLCON PCRISIS AGRICU WTO PTA logTBALANCE, robust
estat classification
estat summarize

* Table 1 (Model III)
gen logGDPCAP = log(GDPCAP)
probit Action INDCON GEOCON POLCON PCRISIS AGRICU WTO PTA logTBALANCE DEMOCR logGDPCAP, robust
estat classification
estat summarize

* Alternative measure INDVAD *
* Table 8 (Model I)
probit Action logINDVAD GEOCON POLCON PCRISIS AGRICU WTO, robust
estat classification
estat summarize

* Table 8 (Model II)
probit Action logINDVAD GEOCON POLCON PCRISIS AGRICU WTO PTA logTBALANCE, robust
estat classification
estat summarize

* Table 8 (Model III)
probit Action logINDVAD GEOCON POLCON PCRISIS AGRICU WTO PTA logTBALANCE DEMOCR logGDPCAP, robust
estat classification
estat summarize

*-------- Stage 2 -------------* 
drop if Action==0

* Table 2 (Model I)
probit Litigation logECOASY logTBALANCE DEMOCR logGDPCAP PTA, robust
estat classification
estat summarize

* Table 2 (Model II)
probit Litigation logECOASY logTBALANCE DEMOCR logGDPCAP PTA PCRISIS, robust
estat classification
estat summarize

* Table 2 (Model III)
probit Litigation logECOASY logTBALANCE DEMOCR logGDPCAP PTA PCRISIS AGRICU, robust
estat classification
estat summarize

*----------------------------------------------------------------------------------------------------------
*--------------------------------------- Heckman probit selection model-------------------------------------------
*----------------------------------------------------------------------------------------------------------	
use "EUTB Dataset.dta", clear

* Table 3 (Model I)
gen logGDPCAP = log(GDPCAP)
heckprob Litigation logECOASY logTBALANCE DEMOCR logGDPCAP PTA, select (Action = PCRISIS WTO) first vce(robust)

* Table 3 (Model II)
heckprob Litigation logECOASY logTBALANCE DEMOCR logGDPCAP PTA, select (Action = INDCON GEOCON POLCON PCRISIS AGRICU WTO) first vce(robust)

* Table 3 (Model III)
heckprob Litigation logECOASY logTBALANCE DEMOCR logGDPCAP PTA, select (Action = logINDVAD GEOCON POLCON PCRISIS AGRICU WTO) first vce(robust)

** For replication syntax Table 4, see Dofile_EUTB_R.R **